WPS Office.apk(点击下载) / edi.java


package defpackage;

import cn.wps.shareplay.message.Message;

/* renamed from: edi  reason: default package */
public final class edi {
    public String eEO = "";
    public int eEP = 5;
    public int height = 0;
    public String ip = "";
    public int width = 0;

    public edi(String str) {
        if (nx(str)) {
            String[] split = str.substring(33).split(Message.SEPARATE);
            try {
                this.eEO = split[0];
                this.ip = split[1];
                this.width = Integer.valueOf(split[2]).intValue();
                this.height = Integer.valueOf(split[3]).intValue();
                this.eEP = Integer.valueOf(split[4]).intValue();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }

    public edi(String str, String str2, int i, int i2, int i3) {
        this.eEO = str;
        this.ip = str2;
        this.width = i;
        this.height = i2;
        this.eEP = i3;
    }

    public static boolean nx(String str) {
        return str != null && str.indexOf("http://tv.wps.cn:8082/sp/o.jsp?q=") >= 0;
    }

    public static String ny(String str) {
        int indexOf = str.indexOf("http://tv.wps.cn:8082/sp/s.jsp?q=");
        if (indexOf >= 0) {
            return str.substring(indexOf + 33);
        }
        int indexOf2 = str.indexOf("http://tv.wps.cn:8082/sp/remote/?type=pc&code=2408302243&v=2");
        if (indexOf2 >= 0) {
            return str.substring(indexOf2 + 60);
        }
        return null;
    }

    public final String aUL() {
        StringBuffer stringBuffer = new StringBuffer();
        stringBuffer.append("http://tv.wps.cn:8082/sp/o.jsp?q=");
        stringBuffer.append(this.eEO).append(Message.SEPARATE);
        stringBuffer.append(this.ip).append(Message.SEPARATE);
        stringBuffer.append(this.width).append(Message.SEPARATE);
        stringBuffer.append(this.height).append(Message.SEPARATE);
        stringBuffer.append(this.eEP);
        return stringBuffer.toString();
    }

    public final String toString() {
        return aUL();
    }
}